﻿using scripts.net;
using scripts.proto;
using System;

namespace scripts.logic
{
	public partial class MsgHandler
	{
		public static void MsgPing(ClientState state, BaseMsg baseMsg)
		{
			Console.WriteLine(NetManager.SERVER_NAME+" Send MsgPing");
			state.lastPingTime = NetManager.GetTimeStamp();
			PongMsg pongMsg = new PongMsg();
			NetManager.Send(state, pongMsg);
		}
	}
}
